package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.common.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author hongdongqu
 */
@Data
@Entity
@Table(name = "sys_user_sso_client")
@TableName("sys_user_sso_client")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_user_sso_client",comment="用户的单点客户端")
public class SysUserSsoClient extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @Column(columnDefinition = "bigint(20) COMMENT '用户id'")
    private Long userId;

    @Column(columnDefinition = "varchar(80) COMMENT '登录类型(手机号/邮箱) 或第三方应用名称 (微信/微博等)'")
    private String identityType;

    @Column(columnDefinition = "varchar(255) COMMENT '手机号/邮箱/第三方的唯一标识'")
    private String identifier;

    @Column(columnDefinition = "varchar(255) COMMENT '密码凭证 (自建账号的保存密码, 第三方的保存 token)'")
    private String credential;

}
